<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="format-detection" content="telephone=no">
    <meta name="robots" content="none">
    <title>中通快递</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" type="text/css" href="/css/af.ui.css">
    <link rel="stylesheet" type="text/css" href="/css/icons.css">
    <link rel="stylesheet" type="text/css" href="/css/zto.css">
    <link rel="stylesheet" type="text/css" href="/css/font.css">
    <script type="text/javascript" charset="utf-8" src="/js/appframework.js"></script>
    <script type="text/javascript">
    	openid=getUrlParam('openid');
    	
    	function backhref(){
    		window.location.href="/memcenter/memview/?openid="+openid;
    	}
    	function getUrlParam(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    		var r = window.location.search.substr(1).match(reg); 
    		if (r != null) return unescape(r[2]); return null;
        }
	    function addAddress() {
	        //提交查询操作
	        openid=getUrlParam('openid');
	        if ($("#ContactName").val().trim() == "") {
	            showMask("姓名不能为空", "info", 1500);
	        } else if ($("#Mobile").val().trim() == "") {
	            showMask("电话不能为空", "info", 1500);
	        } else if (isMobil($("#Mobile").val().trim()) == false && isTel($("#Mobile").val().trim()) == false) {
	            showMask("电话格式不正确", "info", 1500);
	        } else if ($("#Sender").val().trim() == "") {
	            showMask("地区不能为空", "info", 1500);
	        } else if ($("#Address").val().trim() == "") {
	            showMask("地址不能为空", "info", 1500);
	        } else {
	            //提交处理
	            $.post("/memcenter/adduserinfo/",
					  { "ContactName": $("#ContactName").val().trim(), "Mobile": $("#Mobile").val().trim(), "Sender": $("#Sender").val().trim(), "Address": $("#Address").val().trim(), "openid": openid },
					  function (result) {
					      if (result == null) {
					          showMask("系统异常，请重新提交！", "info", 3000);
					          return false;
					      }
					      if (result == "true" || result == true) {
					          showMask("保存成功！", "right", 1500, "/memcenter/memview/?openid=" + openid, "true");
					      }
					      else {
					          showMask(result.Message, "info", 3000);
					      }
	
					  }, "json");
	              }
	}
	</script>
<script type="" src="/js/ProvinceOrder.js"></script></head>
<body>

<div class="hint">
    <span></span>
    <div class="hint_box"></div>
</div>
<div id="afui" class="zto"><div id="header" class="header"> 
	<header id="addressadd_header" style="transform: translate3d(0px, 0px, 0px) scale(1) rotate(0deg) rotateY(0deg) skew(0deg, 0deg); backface-visibility: hidden; opacity: 1; transition-property: all; transition-duration: 230ms; transition-timing-function: linear; transform-origin: 0% 0% 0px;">
    <a id="backButton" onclick="backhref()" data-ignore="True" class="button"></a>
    <h1>完善个人信息</h1>
</header></div>
    

    <div id="content">
        

<!--地址簿添加start-->
<script type="text/javascript" src="/js/Places.js"></script>
<div class="panel y-scroll" js-scrolling="true" title="" id="addressadd" data-header="addressadd_header" data-title="添加地址" style="overflow: hidden; display: block;"><div class="afScrollPanel" style="transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);">

    <div id="inprovince"></div>
    <div class="w5">
        
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="w5Talbe">
            <tbody><tr>
                <td width="70">姓名：</td>
                <td>
                    <input class="noradius" id="ContactName" value="{{user.nickname}}" placeholder="请输入您的姓名" type="text"></td>
            </tr>
            <tr>
                <td>手机：</td>
                <td>
                    <input class="noradius" id="Mobile" value="{{user.telephone}}" placeholder="请输入您的手机" type="tel"></td>
            </tr>
            <tr>
                <td>地区：</td>
                <td class="pr">
                    <input class="noradius Sender" id="Sender" value="{{user.city}}" readonly="" onclick="loadPovinceOrderPage(&#39;Sender&#39;, &#39;addressadd&#39;)" placeholder="请选择所在地区" type="text">
                    <div onclick="baiduLocation()" class="selectico" style="top: 50%; margin-top: -15px">
                        <a class="selectAddressList"></a>
                    </div>
                    </td>
            </tr>
            <tr>
                <td>地址：</td>
                <td>
                    <input class="noradius address" id="Address" value="{{user.address}}" placeholder="请输入详细地址" type="text"></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
            </tr>
        </tbody></table>
        <div class="inputdiv mt30">
            <a onclick="addAddress()" class="sbtn w100 fr">保存</a>
        </div>
        <div class="clearth"></div>
        <div class="h30"></div>
    </div>
</div><div class="afScrollbar" style="position: absolute; width: 5px; height: 20px; border-radius: 2px; display: none; top: 0px; background: rgb(141, 141, 141);"></div></div>

<!--省份城市选择start-->
<div class="panel y-scroll" js-scrolling="true" title="" id="provinceChangeOrder" data-footer="none" data-defer="/ProvinceChange/Order" data-title="省份城市选择" style="overflow: hidden;"><div class="afScrollPanel">

<ul class="provinceNav" id="provinceNav">
  <li class="curr"><a>省份</a>
    <div class="Triangle">&nbsp;</div>
  </li>
  <li><a>城市</a></li>
  <li><a>地区</a></li>
</ul>
<div class="clearth"></div>
<div class="w95 mauto province mt20" id="provinceM">
  <ul class="provinceMain">
    <li class="curr">
      <ul id="cprovince" class="proContent">
        <li><a title="安徽省">安徽</a></li>
        <li><a title="北京">北京</a></li>
        <li><a title="重庆">重庆</a></li>
        <li><a title="福建省">福建</a></li>
        <li><a title="甘肃省">甘肃</a></li>
        <li><a title="广东省">广东</a></li>
        <li><a title="广西壮族自治区">广西</a></li>
        <li><a title="贵州省">贵州</a></li>
        <li><a title="澳门" class="not">澳门</a></li>
        <li><a title="海南省">海南</a></li>
        <li><a title="河北省">河北</a></li>
        <li><a title="河南省">河南</a></li>
        <li><a title="湖北省">湖北</a></li>
        <li><a title="湖南省">湖南</a></li>
        <li><a title="吉林省">吉林</a></li>
        <li><a title="江苏省">江苏</a></li>
        <li><a title="江西省">江西</a></li>
        <li><a title="黑龙江省">黑龙江</a></li>
        <li><a title="辽宁省">辽宁</a></li>
        <li><a title="宁夏回族自治区">宁夏</a></li>
        <li><a title="青海省">青海</a></li>
        <li><a title="山东省">山东</a></li>
        <li><a title="山西省">山西</a></li>
        <li><a title="陕西省">陕西</a></li>
        <li><a title="上海">上海</a></li>
        <li><a title="四川省">四川</a></li>
        <li><a title="内蒙古自治区">内蒙古</a></li>
        <li><a title="天津">天津</a></li>
        <li><a title="西藏自治区">西藏</a></li>
        <li><a title="新疆维吾尔自治区">新疆</a></li>
        <li><a title="云南省">云南</a></li>
        <li><a title="浙江省">浙江</a></li>
        <li><a title="香港" class="not">香港</a></li>
        <li><a title="台湾省" class="not">台湾</a></li>
      </ul>
    </li>
    <li>
      <ul id="city" class="proContent">
      </ul>
    </li>
    <li>
      <ul id="area" class="proContent">
      </ul>
    </li>
  </ul>
</div>

<script type="text/javascript" src="/js/ProvinceOrder.js"></script>
</div><div class="afScrollbar" style="position: absolute; width: 5px; height: 20px; border-radius: 2px; display: none; top: 0px; background: rgb(141, 141, 141);"></div></div>
<!--省份城市选择end-->
<!--地址簿添加end-->
<script type="text/javascript" src="/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="/js/api"></script>
<script type="text/javascript" src="/js/getscript"></script>
<script type="text/javascript">
    wx.ready(function () {
        var shareData = {
            title: '中通快递官方微信公众号',
            desc: '中通快递官方微信为您提供在线查件、寄件、网点查询、价格时效查询等服务！',
            link: 'http://weixin.zto.cn/Address/',
            imgUrl: imgUrl,
        };
        wx.onMenuShareAppMessage(shareData);
        wx.onMenuShareTimeline(shareData);
    });
</script>

   
<script type="text/javascript" src="/js/appframework.ui.js"></script>
<script type="text/javascript" src="/js/zto.wap.js"></script>
<script type="text/javascript">
    var t = false; //目前状态
    var id = ""; //上一次点击的ID
    $("#navbar a").click(function() {
        var i = $(this).index();
        $(".navbarJiao").removeClass("navbar1").removeClass("navbar2").removeClass("navbar3");
        $(".navbarList").removeClass("bottom");
        $(".navbarList").eq(i).toggleClass("bottom");
        if (i == id) {
            id = i;
            if (!t) {
                $(".navbarList").eq(i).addClass("bottom");
                $(".navbarJiao").addClass("navbar" + Number(i + 1));
                t = true;
            } else {
                $(".navbarList").eq(i).removeClass("bottom");
                $(".navbarJiao").removeClass("navbar1").removeClass("navbar2").removeClass("navbar3");
                t = false;
            }
        } else {
            id = i;
            $(".navbarList").eq(i).addClass("bottom");
            $(".navbarJiao").addClass("navbar" + Number(i + 1));
            t = true;
        }
    });
    $("#content,#header").bind("click", function() {
        $(".navbarList").removeClass("bottom");
        $(".navbarJiao").removeClass("navbar1").removeClass("navbar2").removeClass("navbar3");
    });
</script>

<div id="afui_mask" class="ui-loader" style="z-index: 20000; display: none;"><span class="ui-icon ui-icon-loading spin"></span><h1>内容加载中...</h1></div></body></html>